{if $TS_USER['userid']}

<div class="facebox panel panel-default">
<div class="panel-body">
<div class="face">
<a href="{tsUrl('user','space',array('id'=>$strUser['userid']))}"><img class="img-rounded" title="{$strUser[username]}" alt="{$strUser[username]}" src="{$strUser[face]}" width="48"></a>
</div>

<div class="info">
<h3><a href="{tsUrl('user','space',array('id'=>$strUser['userid']))}">{$strUser[username]}</a></h3>
<div>


<a class="btn btn-sm btn-default br0" href="{tsUrl('user','space',array('id'=>$strUser['userid']))}">我的空间</a>


</div>
</div>

<div class="clear"></div>

<ul class="other">
<li class="br"><span class="fs14"><a href="{tsUrl('user','group',array('id'=>$strUser['userid']))}">{$strUser['count_group']}</a></span><br />小组</li>
<li class="br"><span class="fs14"><a href="{tsUrl('user','topic',array('id'=>$strUser['userid']))}">{$strUser['count_topic']}</a></span><br />帖子</li>
<li class="br"><span class="fs14"><a href="{tsUrl('user','followed',array('id'=>$strUser['userid']))}">{$strUser['count_followed']}</a></span><br />粉丝</li>
<li><span class="fs14"><a href="{tsUrl('user','follow',array('id'=>$strUser['userid']))}">{$strUser['count_follow']}</a></span><br />关注</li>
</ul>

<div class="clear"></div>

<div class="fmore">

<a href="{tsUrl('user','verify')}">{if $strUser['isverify']==1}<img src="{SITE_URL}public/images/rz1.png" width="20" alt="通过Email认证" title="通过Email认证" align="absmiddle" />{else}<img src="{SITE_URL}public/images/rz2.png" width="20" alt="未通过Email认证" title="未通过Email认证" align="absmiddle" />{/if}</a>

    {if $strUser['isrenzheng']==1}
    <img src="{SITE_URL}public/images/renzheng1.png" width="20" height="20" alt="通过人工认证" title="通过人工认证" />
    {else}
    <img src="{SITE_URL}public/images/renzheng2.png" width="20" height="20" alt="未通过人工认证" title="未通过人工认证" />
    {/if}

<br />
角色：<a href="{tsUrl('user','role')}">{$strUser['rolename']}</a> <span style="padding-left:30px;">积分：<a href="{tsUrl('my','score')}">{$strUser['count_score']}</a></span>

</div>
</div>
</div>


{else}
<div class="panel panel-default login">
<form action="{tsUrl('user','login',array('ts'=>'do'))}" method="post">
<fieldset>
<legend>登录</legend>
<div class="item">
<label>Email:</label>
<br />
<input class="form-control br0" type="email" name="email">
</div>
<div class="item">
<label>密码：</label>
<br />
<input class="form-control br0" type="password" name="pwd">
</div>

<div class="item1">
<input type="hidden" name="cktime" value="2592000" />
<input type="hidden" name="token" value="{$_SESSION['token']}" />
<button type="submit" class="btn btn-success br0">登 录</button>

    <a class="btn btn-link c9" href="{tsUrl('user','register')}">还没有注册？</a>

</div>
</fieldset>
</form>

    <div class="pd100 tac lh30">
        {php doAction('home_login')}
    </div>

</div>
{/if}